<div id="body_container">
    <div class="detail_container">
      <div class="detail_box">
        <div class="detail_top_curve">
          <div class="detail_detail_content">
            <div class="welcomezone">
              <div style="margin-bottom:10px;">
                <div class="blueboldheading">
                  <h1>Account</h1>
                </div>
               

<% user = User.find_by_id(session[:user_id]) %>
<% if flash[:notice] %>
<div id="error_explanation">
<%= flash[:notice] %>
</div>
<%end%>
Picture:
<center>
<% if user.photo.file? %>

<%= image_tag user.photo.url(:small) %>
<% else %>
<%= image_tag("d.png") %>
<% end %>

</br>
<p2>
<a href = "/photo"><span>Change photo</span></a>
</br>
</center>
</p2>
</br>
</br>
<account> 
Surname:
<p2>
<%= user.name %>
</p2>
</br>
</br>
Firstname:
<p2>
<%= user.firstname %>
</p2>
</br>
</br>
<account>
Username:
<p2 >
<%= user.username %>
</p2>
</br>
</br>
<account>
Email:
<p2>
<%= user.email %>
</p2>
</br>
</br>
<account>
Age:
<p2>
<% time = Time.new %>
<%= ( time.year - user.age)%>  years old
</p2>
</br>
</br>
<account>
Gender:
<p2>
<%= user.sex %>
</p2>
</br>
</br>
<account>
Interested in: <p2 ><%= user.interest %>
</p2>
</br>
</br>
<account>
You live in:
<p2 >
<%= user.adress%>
</p2>
</br>
</br>
<account>
About you: 
<p2 >
</br>
<%= user.description %>
</p2>
</br>
</br>
<p2>
<span><a href = "/edit"><span>Edit Informations</span></a></br></br>
<%= link_to "Change password", '/newpass' %></span>
</br>
</br>
</br>

</account>
